package cn.cena.basic.mapper;

import cn.cena.basic.query.BaseQuery;
import java.util.List;

public interface BaseMapper<T> {
    T findOne(Long id);

    List<T> findAll();

    void save(T T);

    void update(T T);

    void del(Long id);

    /**
     *  查询总条数
     */
    Integer queryCount(BaseQuery query);

    /**
     * 查询当前页数据
     * @param query
     * @return
     */
    List<T> queryData(BaseQuery query);

    void patchDelete(Long[] ids);
}
